
<c:if test="${!empty addContractFailureFlag}">
    <p class="message errorMessage">Unable to add contract to the database.</p>
</c:if>
<c:if test="${!empty contractName}">
    <p class="message confirmationMessage">${contractName} has been added to the database.</p>
</c:if>
<form method="post" action="<c:url value='addContract'/>">
    <fieldset>
        <legend>Contract Details</legend>
        <label for="network">Network:</label>
        <%-- What if no network has been added yet. --%>
        <select name="network">
            <c:forEach var="network" items="${networks}">
                <option value="${network.id}">${network.name}</option>
            </c:forEach>
        </select><br />
        <label for="contractName">Contract Name:</label><input type="text" name="contractName" /><br />
        <input type="submit" class="submit" />
    </fieldset>
</form>



